package com.redis.test.entity;

import java.util.Date;

/**
 * Created by dong on 16-8-1.
 * 商品实体类
 */
public class Product {

    private long productId;

    private String name;

    private int number;

    private Date createTime;

    public long getProductId() {
        return productId;
    }

    public void setProductId(long productId) {
        this.productId = productId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "Product{" +
                "productId=" + productId +
                ", name='" + name + '\'' +
                ", number=" + number +
                ", createTime=" + createTime +
                '}';
    }
}
